<?php
	require_once(dirname(__FILE__) . '/setting.php');
	require_once('Zeal_Construct.php');

class Zeal_Object extends Zeal_Object_Construct {
	public $_Pro1_ = "eee";



	public function getInstance($conf=array(), $name='__singleton__')
	{
		return parent::getInstanceAbstract($conf, $name, __CLASS__);
	}
}
class Zeal extends Zeal_Object_Construct {
	public $var = 555;
}

		//$Zeal = new Zeal();
	function __main__()
	{
		$conf = array();
		$conf['Pro1'] = 1;
		$conf['Pro2'] = 2;
		$conf['Test'] = array('_type_' => 'C*', 'name' => "Zeal", 'conf' => array(), 'singleton' => false, );
		//$obj = new Zeal_Object($conf);

		$obj = Zeal_Object::getInstance($conf, 'test');
		
		$obj = Zeal_Object::getInstance(null, 'test');

		//$obj->test();
		//$obj->Pro1 =3;
		//$obj->setPro1(4444);
		//var_dump($obj->Pro1);
		//var_dump($obj->getPro1());
		var_dump($obj->toArray());

		//$Zeal = new Zeal();
		//$x = Zeal::getInstance();
		//var_dump($x->var);


		var_dump($obj->Pro1);
		//var_dump($obj->getPro1());
		//var_dump($obj->_Pro1_);
		//var_dump($obj->getPro1());

	}
	__main__();
?>